package util

import (
	"log"
	"os"
)

var fileName = "password.json"

func Read() {

}

/*写入文件系统*/
func Write() {
	file, _ := os.Open(fileName)
	if file == nil {
		log.Printf("密码存储文件不存在,准备初始化新建文件")
		file, _ = os.Create(fileName)
		log.Printf("新建文件成功!")
	}
	//开始写入文件
	content := []byte("{}")
	_ = os.WriteFile(fileName, content, 0666)
}
